package com.ghy.seckill.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ghy.seckill.entity.SmsSeckillSession;
import com.ghy.seckill.service.SmsSeckillSessionService;
import com.ghy.seckill.mapper.SmsSeckillSessionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
*
*/
@Service
public class SmsSeckillSessionServiceImpl extends ServiceImpl<SmsSeckillSessionMapper, SmsSeckillSession>
implements SmsSeckillSessionService{
    @Autowired
    private SmsSeckillSessionMapper selectList;
    @Override
    public List<SmsSeckillSession> GamePrestrain(String newDate, String endTime) {
        QueryWrapper queryWrapper=new QueryWrapper();
        queryWrapper.between("start_time",newDate,endTime);

        List list = selectList.selectList(queryWrapper);
        return list;
    }
}
